import request from '@/utils/request'

// 查询人口或建筑物版本列表 人员伤亡
export function getVersion(query) {
  return request({
    url: '/casualties/getVersion',
    method: 'get',
    params: query
  })
}

// 获取人员伤亡的结果
export function getPopulationResult(query) {
  return request({
    url: 'casualties/getPopulationResult',
    method: 'get',
    params: query
  })
}
// 查询人员伤亡模型信息 人员伤亡
export function chooseModel(query) {
  return request({
    url: '/casualties/chooseModel',
    method: 'get',
    params: query
  })
}
// 计算各烈度下各类建筑物的破坏面积 人员伤亡
export function casualtiesCountIntensityAndStructureOfArea(data) {
  return request({
    url: '/casualties/countIntensityAndStructureOfArea',
    method: 'post',
    data: data
  })
}
// 计算格网下的人员伤亡 人员伤亡
export function savePbeInjuries(data) {
  return request({
    url: '/casualties/savePbeInjuries',
    method: 'post',
    data: data
  })
}
// 评估 人员伤亡
export function casualtiesEvaluate(data) {
  return request({
    url: '/casualties/evaluate',
    method: 'post',
    data: data
  })
}
// 计算各烈度下各类建筑物的破坏面积  房屋破坏
export function houseDestroyCountIntensityAndStructureOfArea(data) {
  return request({
    url: '/houseDestroy/countIntensityAndStructureOfArea',
    method: 'post',
    data: data
  })
}
// 评估 房屋破坏
export function houseDestroyEvaluate(data) {
  return request({
    url: '/houseDestroy/evaluate',
    method: 'post',
    data: data
  })
}
// 房屋破坏结果
export function getHouseDestoryResult(query) {
  return request({
    url: '/houseDestroy/getHouseDestoryResult',
    method: 'get',
    params: query
  })
}
// 房屋破坏结果
export function getHouseDestoryAreaSum(query) {
  return request({
    url: '/houseDestroy/getHouseDestoryAreaSum',
    method: 'get',
    params: query
  })
}

export function getModelData(query) {
  return request({
    url: '/houseDestroy/getModelData',
    method: 'get',
    params: query
  })
}
export function getModelCasualties(id) {
  return request({
    url: '/casualties/getModelById?id=' + id,
    method: 'get'
  })
}

export function casualtiesGetModelData(query) {
  return request({
    url: '/casualties/getModelData',
    method: 'get',
    params: query
  })
}

